package iot.core.data.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import iot.core.data.BaseEntity;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@Data
@Schema(name = "机构表",description = "")
@TableName(value ="HTDept")
public class HTDept extends BaseEntity {


    @Schema(name = "父编号",description = "1000研发后台 2000 单位平台 3000主管平台  4000厂家平台")
    private  Long  PId ;

    @Schema(name = "机构顶级编号",description = "")
    private  Long  Root_Id ;

    @Schema(name = "平台编号",description = "")
    private  Long  HTPlat_Id ;

    @Schema(name = "机构名称",description = "")
    @NotBlank(message = "机构名称不能为空")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Name ="";

    @Schema(name = "区域编号",description = "")
    private  Long  HTArea_Id ;

    @Schema(name = "地址",description = "")
    @Size(min =0,max = 100,message = "长度范围0-100")
    private  String  Address ="";

    @Schema(name = "联系人",description = "")
    @Size(min =0,max = 50,message = "长度范围0-50")
    private  String  DutyPerson ="";

    @Schema(name = "联系电话",description = "")
    @Size(min =0,max = 40,message = "长度范围0-40")
    private  String  Tel ="";

    @Schema(name = "备注",description = "")
    private  String  Memo ="";

    @Schema(name = "照片",description = "")
    private  String  Url ="";

    @Schema(name = "状态",description = "启用、停用")
    @Size(min =0,max = 10,message = "长度范围0-10")
    private  String  State ="";

    @Schema(name = "经度",description = "")
    private BigDecimal Lng ;

    @Schema(name = "纬度",description = "")
    private  BigDecimal  Lat ;

    @Schema(name = "创建日期",description = "")
    private  Date  Crt_DT ;

    @Schema(name = "创建人编号",description = "")
    private  Long  Crt_UId ;

    @Schema(name = "机构编号",description = "")
    private  Long  Crt_DId ;

    @Schema(name = "修改日期",description = "")
    private  Date  Edt_DT ;

    @Schema(name = "修改人编号",description = "")
    private  Long  Edt_UId ;

    @Schema(name = "删除标志",description = "")
    private  boolean Deleted ;

    @Schema(name = "Gid",description = "")
    private  String  GId ;


}
